<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      dvisvgm-2.8.2
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;51.&nbsp;Typesetting
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="biber.html" title="biber-2.14">Prev</a>
          <p>
            biber-2.14
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="xindy.html" title="xindy-2.5.1">Next</a>
          <p>
            xindy-2.5.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="typesetting.html" title=
          "Chapter&nbsp;51.&nbsp;Typesetting">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="dvisvgm" name="dvisvgm"></a>dvisvgm-2.8.2
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to dvisvgm
        </h2>
        <p>
          The <span class="application">dvisvgm</span> package converts DVI,
          EPS and PDF files to SVG format.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/mgieseki/dvisvgm/releases/download/2.8.2/dvisvgm-2.8.2.tar.gz">
                https://github.com/mgieseki/dvisvgm/releases/download/2.8.2/dvisvgm-2.8.2.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: f6fea0b1f160a075bea9fe657ac873fb
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 3.0 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 322 MB (add 978 MB for the
                tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.8 SBU (add 0.6 SBU for the tests,
                both using parallelism=4)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          dvisvgm Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="gs.html" title=
          "ghostscript-9.50">ghostscript-9.50</a> and <a class="xref" href=
          "../general/potrace.html" title="Potrace-1.16">Potrace-1.16</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../general/asciidoc.html" title=
          "Asciidoc-8.6.9">asciidoc-8.6.9</a> with <a class="xref" href=
          "xmlto.html" title="xmlto-0.0.28">xmlto-0.0.28</a> and <a class=
          "xref" href="../general/libxslt.html" title=
          "libxslt-1.1.34">libxslt-1.1.34</a> (see command explanations),
          <a class="ulink" href="http://dblatex.sourceforge.net/">dblatex</a>
          (with the above) and <a class="ulink" href=
          "https://github.com/Cyan4973/xxHash/releases/latest">xxHash</a>
          (the current version is included in the tarball)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/dvisvgm">http://wiki.linuxfromscratch.org/blfs/wiki/dvisvgm</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of dvisvgm
        </h2>
        <p>
          To enable the build system to link to <code class=
          "filename">libkpathsea.so</code>, as the <code class=
          "systemitem">root</code> user create a symlink from <code class=
          "filename">/usr/lib</code>:
        </p>
        <pre class="root">
<kbd class=
"command">ln -svf /opt/texlive/2019/lib/libkpathsea.so /usr/lib</kbd>
</pre>
        <p>
          Now install <span class="application">dvisvgm</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure                                    \
 --bindir=/opt/texlive/2019/bin/${TEXARCH}     \
 --mandir=/opt/texlive/2019/texmf-dist/doc/man \
 --with-kpathsea=/opt/texlive/2019            &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install                            &amp;&amp;
install -v -m644 doc/dvisvgm.1           \
 /opt/texlive/2019/texmf-dist/doc/man/man1</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>ln -svf
          /opt/texlive/2019/lib/libkpathsea.so /usr/lib</strong></span>:
          Without this, the program will not link correctly,
        </p>
        <p>
          <span class=
          "command"><strong>--mandir=/opt/texlive/2019/texmf-dist/doc/man</strong></span>:
          Unusually, the shipped man page will only be installed by
          <span class="command"><strong>make install</strong></span> if all
          of <span class="application">asciidoc</span>, <span class=
          "application">xmlto</span> and <span class=
          "application">libxslt</span> have been installed. This switch
          ensures it will overwrite the (old) page installed by the texmf
          tarball if it installs.
        </p>
        <p>
          <span class=
          "command"><strong>--with-kpathsea=/opt/texlive/2019</strong></span>:
          This allows the build system to find the headers for <code class=
          "filename">kpathsea</code>
        </p>
        <p>
          <span class="command"><strong>install -v -m644 doc/dvisvgm.1
          ...</strong></span>: This ensures that the man page is installed in
          the correct place even if the optional dependencies are not
          present, and overwrites the version installed by <span class=
          "command"><strong>make install</strong></span> if they are present.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program(s):</strong>
              <span class="segbody">dvisvgm</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Librar(y,ies):</strong>
              <span class="segbody">none</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Director(y,ies):</strong>
              <span class="segbody">none</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="dvisvgm-prog" name="dvisvgm-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>dvisvgm</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts DVI, EPS and PDF files to the SVG format
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-27 13:05:33 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="biber.html" title="biber-2.14">Prev</a>
          <p>
            biber-2.14
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="xindy.html" title="xindy-2.5.1">Next</a>
          <p>
            xindy-2.5.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="typesetting.html" title=
          "Chapter&nbsp;51.&nbsp;Typesetting">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
